package com.pronosticos.reportes.entity;

// Generated 17/07/2014 10:47:12 PM by Hibernate Tools 4.0.0

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TblMelateNormal generated by hbm2java
 */
@Entity
@Table(name = "TBL_MELATE_NORMAL")
public class TblMelateNormal implements java.io.Serializable {

	private static final long serialVersionUID = -2487974614303322654L;
	private TblMelateNormalId id;
	private TblProductos tblProductos;
	private Date fecha;
	private BigDecimal bolsa;
	private BigDecimal b1;
	private BigDecimal b2;
	private BigDecimal b3;
	private BigDecimal b4;
	private BigDecimal b5;
	private BigDecimal b6;
	private BigDecimal ba;

	public TblMelateNormal() {
	}

	public TblMelateNormal(TblMelateNormalId id, TblProductos tblProductos) {
		this.id = id;
		this.tblProductos = tblProductos;
	}

	public TblMelateNormal(TblMelateNormalId id, TblProductos tblProductos,
			Date fecha, BigDecimal bolsa, BigDecimal b1, BigDecimal b2,
			BigDecimal b3, BigDecimal b4, BigDecimal b5, BigDecimal b6,
			BigDecimal ba) {
		this.id = id;
		this.tblProductos = tblProductos;
		this.fecha = fecha;
		this.bolsa = bolsa;
		this.b1 = b1;
		this.b2 = b2;
		this.b3 = b3;
		this.b4 = b4;
		this.b5 = b5;
		this.b6 = b6;
		this.ba = ba;
	}

	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "pkConcurso", column = @Column(name = "PK_CONCURSO", nullable = false, precision = 22, scale = 0)),
			@AttributeOverride(name = "fkProducto", column = @Column(name = "FK_PRODUCTO", nullable = false, precision = 22, scale = 0)) })
	public TblMelateNormalId getId() {
		return this.id;
	}

	public void setId(TblMelateNormalId id) {
		this.id = id;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "FK_PRODUCTO", nullable = false, insertable = false, updatable = false)
	public TblProductos getTblProductos() {
		return this.tblProductos;
	}

	public void setTblProductos(TblProductos tblProductos) {
		this.tblProductos = tblProductos;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FECHA", length = 7)
	public Date getFecha() {
		return this.fecha;
	}

	public void setFecha(Date fecha) {
		this.fecha = fecha;
	}

	@Column(name = "BOLSA", precision = 22, scale = 0)
	public BigDecimal getBolsa() {
		return this.bolsa;
	}

	public void setBolsa(BigDecimal bolsa) {
		this.bolsa = bolsa;
	}

	@Column(name = "B1", precision = 22, scale = 0)
	public BigDecimal getB1() {
		return this.b1;
	}

	public void setB1(BigDecimal b1) {
		this.b1 = b1;
	}

	@Column(name = "B2", precision = 22, scale = 0)
	public BigDecimal getB2() {
		return this.b2;
	}

	public void setB2(BigDecimal b2) {
		this.b2 = b2;
	}

	@Column(name = "B3", precision = 22, scale = 0)
	public BigDecimal getB3() {
		return this.b3;
	}

	public void setB3(BigDecimal b3) {
		this.b3 = b3;
	}

	@Column(name = "B4", precision = 22, scale = 0)
	public BigDecimal getB4() {
		return this.b4;
	}

	public void setB4(BigDecimal b4) {
		this.b4 = b4;
	}

	@Column(name = "B5", precision = 22, scale = 0)
	public BigDecimal getB5() {
		return this.b5;
	}

	public void setB5(BigDecimal b5) {
		this.b5 = b5;
	}

	@Column(name = "B6", precision = 22, scale = 0)
	public BigDecimal getB6() {
		return this.b6;
	}

	public void setB6(BigDecimal b6) {
		this.b6 = b6;
	}

	@Column(name = "BA", precision = 22, scale = 0)
	public BigDecimal getBa() {
		return this.ba;
	}

	public void setBa(BigDecimal ba) {
		this.ba = ba;
	}

}
